﻿using Architecture.Repository.Interface.Traceability;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Traceability.Domain;

namespace Architecture.Repository.Impl.Traceability
{
    public class PictureRepository : BaseRepository<Pictures>, IPictureRepository
    {
        public PictureRepository(EFCoreContext context) : base(context)
        {
        }

        public async Task<int> AddPicture(Pictures pictures)
        {
            return await base.AddAsync(pictures);
        }

        public async Task<List<Pictures>> GetPictures()
        {
            return await base.GetAllAsync();
        }

        public async Task<Pictures> GetPicturesModels(int pictureId)
        {
            return await base.GetModelAsync(pictureId);
        }

        public async Task<int> UpdatePictures(Pictures pictures)
        {
            return await base.UpdateAsync(pictures);
        }

    }
}
